@import '../../res/theme/xxhz.scss';

#video-h5 {
  background-color: #000;
  width: 100%;
  object-fit: cover;
}

.indexRoot {
  width: 100%;
  overflow: visible;
  padding-bottom: calc(env(safe-area-inset-bottom) / 2.5 + 108px);

  .drawer-item {
    font-size: 28px;
    border-bottom: solid 1px #ededed;
    padding: 20px 0 20px 30px;
    color: #666;
  }

  .drawer-item-active {
    color: $mainColor;
  }

  .gzh-root {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: wrap;
    flex-direction: column;
    z-index: 9999;
    transform: translateZ(1px);

    .gzh-box {
      width: 500px;
      height: 602px;
      background: url("http://resource.ivcheng.com/resources/weapp/images/gzh-bg.png") no-repeat;
      background-size: 100% 100%;
      margin-top: -150px;
      position: relative;

      .gzh-box-img {
        width: 300px;
        position: absolute;
        top: 246px;
        left: 23%;
      }
    }

    .gzh-close {
      position: relative;
      left: 20px;
      top: 20px;

      .gzh-close-img {
        width: 60px;
      }
    }
  }

  .s-diy {
    position: absolute;
    left: 0;
    top: 20px;
    z-index: 9;
  }

  .opacity {
    background: none !important;
  }

  .head-bg {
    text-align: center;
    line-height: 160px;
  }

  .swiper-diy1 {
    width: 100vw;
    overflow: hidden !important;
    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    position: relative;
    z-index: 1;
  }

  .swiper-diy {
    position: relative;
    z-index: 1;
    overflow: hidden !important;
    border-bottom-left-radius: 30px !important;
    border-bottom-right-radius: 30px !important;
    width: 100%;
  }

  .swiper-diy2 {
    position: relative;
    z-index: 1;
    overflow: hidden !important;
    width: 94%;
    margin: 0 auto;

    .swiper-wrap {
      border-radius: 30px;

      .__hw-100 {
        border-radius: 30px;
      }
    }
  }

  .position-single-top {
    justify-content: flex-start !important;
    margin: 0 20px;
    padding: 20px;
    position: inherit !important;
  }

  .swiper-diy-site {
    position: absolute;
    top: 59px;
    left: 20px;
    z-index: 5;
    justify-content: center;
    display: flex;
    align-items: center;
    color: #333333;
    font-weight: bold;

    .icon {
      margin-left: 10px;
    }
  }

  .swiper-diy-site-select {
    position: static;
    z-index: 9;
  }

  .swiper-wrap {
    position: relative;
    overflow: hidden !important;

    .swiper {
      width: 100%;
      min-height: 100px;
      height: 100%;
    }

    .swiper-box {
      width: 100%;
      position: relative;
    }
  }

  .swiper-wrap1 {
    width: 200vw;
    position: relative;
    left: -50vw;
    border-bottom-left-radius: 60%;
    border-bottom-right-radius: 60%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);

    .swiper {
      width: 100%;
      min-height: 100px;
      height: 100%;
    }

    .swiper-box {
      width: 100vw;
      position: relative;
    }

    .swiper-box1 {
      width: 94%;
      border-radius: 15px;
      overflow: hidden;

      .swiper {
        width: 100%;
      }
    }
  }

  .categorys {
    box-sizing: border-box;
    padding: 20px 20px 0;
    margin: 0 auto;
  }

  .index-main-labels {
    position: relative;
    box-sizing: border-box;
    margin: 0 20px;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .seckill-main-box{
    background-color: #FEF0B1;
    border-radius: 16px;
  }

  .labels {
    box-sizing: border-box;
  }

  .recommend {
    margin-top: 20px;
  }

  .advert-box {
    width: 720px;
    margin: 20px auto;
    overflow: hidden;

    image, .taro-img {
      width: 100%;
      border-radius: 7px;
    }
  }

  .goods-box {
    margin-top: 20px;
    width: 100%;
    background-color: white;

    .head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      box-sizing: border-box;
      padding: 20px 30px;

      .title {
        font-size: 32px;
        font-weight: bold;
      }

      .tabbar {
        display: flex;
        align-items: center;

        .btn {
          font-size: 30px;
          color: $color-font-secondry;
          box-sizing: border-box;
          padding: 0 20px;
          height: 50px;
          line-height: 50px;
        }

        .active {
          color: $color-brand;
        }
      }

      .show-type {

      }

      .active {
        color: $color-brand;
      }
    }

    .goods {
      width: 100%;
    }
  }

  .sale-module-1 {
    width: 100%;
    margin-top: 20px;
  }

  .sale-module-2 {
    width: 100%;
    margin-top: 20px;
  }

  .sale-module-3 {
    width: 100%;
    margin-top: 20px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .most-module {
    width: 100%;
    margin-top: 20px;
  }

  .common-module {
    width: 100%;
    margin-top: 20px;
    background-color: white;
  }

  .search-bar {
    position: fixed;
    left: 0;
    z-index: 99;
    width: calc(100% - 140Px);
    margin-left: 20px;
    border-radius: 16Px;
    overflow: hidden;

    &.h5,&.tt {
      width: calc(100% - 20Px);
      position: relative !important;
      padding-top: 20px;
      top: 0 !important;
      padding-bottom: 20px;
    }
  }

  .border1 {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.2);
  }

  .head-bg {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 0;
  }

  .head-bg-static {
    width: 100%;
    background-color: $color-brand;
    position: static;
  }

  .opacity {
    opacity: 1;
    transition: opacity 0.5s ease 0s;
  }

  .iosx {
    height: env(safe-area-inset-bottom);
    min-height: 60px;
  }

  #videoBox {
    width: 720px;
    margin: 0 auto;
  }

  .banner_video {
    width: 100%;
    position: relative;
    z-index: 98;

    .taro-video-bar {
      display: none;
    }

    #video {
      width: 100%;
    }

    .banner_muted {
      position: absolute;
      width: 60px;
      height: 60px;
      top: 80%;
      right: 20px;
      line-height: 60px;
      text-align: center;
    }
  }

  .turn {
    animation: turn 1s linear infinite;
  }

  @keyframes turn {
    0% {
      transform: rotate(0deg);
      transform-origin: 50% 50%;
    }
    100% {
      transform: rotate(360deg);
      transform-origin: 50% 50%;
    }
  }

  .kd-site {
    padding: 25px 0;
    display: flex;
    justify-content: left;
    align-items: center;

    &-name {
      font-size: 32px;
      margin-right: 15px;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }

    &-left {
      margin-right: 15px;
      margin-left: 15px;
    }
  }

  .site-location {
    background-color: rgba(255, 255, 255, .5);
    padding: 10px 20px;
    max-width: 290px;
    border-radius: 30px;
  }
}

.sticky-t-0 {
  position: static;
  top: 0;
}

.m-auto {
  margin: 0 !important;
}

.min-height-800 {
  min-height: 67vh;
}

._search-box {
  padding-left: 10px;
  height: 70px;
  line-height: 70px;
  background-color: #fff;
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-start;
  border-radius: 50px;

  .icon {
    margin-right: 4px;
  }
}

._search {
  font-size: 24px;
  height: 100%;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  color: #747474;
  margin-top: -55px;
  position: relative;
  margin-bottom: 30px;
  z-index: 999;

  .icon {
    margin-left: 10px;
  }
}

.p-t-138 {
  padding-top: 138px;
}


.__hw-100 {
  width: 100%;
  height: 100% !important;
}

.banner4-style {
  width: 100%;
  height: 360px;
  position: absolute;
  top: 138px;
  z-index: 0;
  border-bottom-left-radius: 70%;
  border-bottom-right-radius: 70%;
}

.banner4-style-h5,.banner4-style-tt {
  width: 100%;
  height: 360px;
  position: absolute;
  top: 0;
  z-index: 0;
  border-bottom-left-radius: 70%;
  border-bottom-right-radius: 70%;
}

.imageFix {
  height: 100%;
  width: 100%;

  img {
    width: 100%;
    height: 100%;
  }
}

.m-b-10 {
  margin-bottom: 20px;
}
